package com.example.sandbox.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("商户请求实体")
public class AccountQueryRequest {

    @ApiModelProperty(value = "商户号", required = true)
    @NotEmpty(message = "商户号不能为空")
    private String mchNo; // 商户号

    @ApiModelProperty(value = "货币类型\t", required = true)
    @NotEmpty(message = "货币类型不能为空")
    private String currency;

    @ApiModelProperty(value = "请求时间", required = true)
    private long reqTime; //

    @ApiModelProperty(value = "签名", required = true)
    private String sign; // 签名值，详见签名算法

    // 构造方法
    public AccountQueryRequest(String mchNo, String currency, long reqTime, String sign) {
        this.mchNo = mchNo;
        this.currency = currency;
        this.reqTime = reqTime;
        this.sign = sign;
    }

    // 默认构造方法
    public AccountQueryRequest() {
        // 默认构造器
    }
}